<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta charset="utf-8">
    <title>代码查看</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/css/layui.css"  media="all">
</head>
<body>

<div class="layui-container">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md12">
            <ul class="layui-nav layui-bg-green" lay-filter="menu">
                <li class="layui-nav-item"><a href="/index.html">YCOJ</a></li>
                <li class="layui-nav-item"><a href="/index.html">Home</a></li>
                <li class="layui-nav-item layui-this"><a href="/problem.html">Problem Set</a></li>
                <li class="layui-nav-item"><a href="">Contest</a></li>
                <li class="layui-nav-item"><a href="/status.html">Status</a></li>
                <li class="layui-nav-item"><a href="">FAQ</a></li>
                <li class="layui-nav-item">
                    <a href="javascript:;">个人中心</a>
                    <dl class="layui-nav-child"> <!-- 二级菜单 -->
                        <dd><a href="/submitLog.html">提交记录</a></dd>
                        <!--<dd><a href="">Modify</a></dd> 修改的页面放Userinfo里面-->
                        <dd><a href="/accountManageD.html">账号管理</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
            <legend>代码查看</legend>
        </fieldset>

        <script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
        <div class="layui-col-md12">
            <div class="layui-card-header layui-bg-blue" align="center">Code</div>
            <xmp class="layui-code-view">
{{code}}
            </xmp>
        </div>


    </div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.6.8/layui.js" charset="utf-8"></script>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
        var element = layui.element;//导航的hover效果、二级菜单等功能，需要依赖element模块

        //一些事件触发
        //监听导航点击的回调
        element.on('nav(menu)',function (elem) {
            //console.log(elem);
            layer.msg(elem.text());
        });
    });
</script>

<script type="text/javascript">
    layui.use('code',function (){//加载code模块
        layui.code();//引用code方法
    })
</script>

</body>
</html>